package edu.whu.assignment8.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.whu.assignment8.dataobject.Role;
import edu.whu.assignment8.dataobject.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.cache.annotation.Cacheable;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    @Select("select * from role where name = #{name}")
    Role selectByName(String name);
}
